package ooday01;

public class Car {
    //extends 一丝疼死
    String brand ;
    String color;
    int price;
    //extends 一丝疼死


    Car(){}
    Car(String brand, String color, int price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println(brand+"牌的汽车启动,点火了");
    }
    void run(){
        System.out.println(brand+"牌的汽车启动,点火了"+color+"颜色的车,开始上路跑了");
    }
    void stop(){
        System.out.println(brand+"牌的汽车"+color+"颜色的"+price+"块钱的车启动了,开始上路跑了,遇到了事故,停车了");
    }
}
